//
//  TextFieldViewController.m
//  TextField
//

#import "TextFieldViewController.h"

@implementation TextFieldViewController

- (void)viewDidLoad {
    [super viewDidLoad];

	CGRect textRect = CGRectMake(10, 10, 300, 26);
	UITextField *myTextField = [[UITextField alloc] initWithFrame:textRect];
	myTextField.borderStyle = UITextBorderStyleRoundedRect;
	
	myTextField.clearsOnBeginEditing = YES;
	myTextField.clearButtonMode = UITextFieldViewModeWhileEditing;
	
	[self.view addSubview:myTextField];
	[myTextField release];
}

- (void)dealloc {
    [super dealloc];
}

@end
